class_name PlayerSystem
extends BaseSystem

## 玩家系统

#region 属性
@export var player_scene:PackedScene
@export var default_player_data:EntityData_Character
var player_data:EntityData_Character
var player:Player
#endregion
#region 字段
#endregion
#region 信号
#endregion

#region 基类方法
func init_system(args = null):
	super(args)
#endregion
#region 公共方法
func get_player() -> Player:
	return player
func create_player() -> Player:
	if player:
		player.queue_free()
	player = player_scene.instantiate()
	return player
func translate_player(pos:Vector2):
	if player:
		player.global_position = pos
#endregion
#endregion
#region 私有方法
#endregion
#region 生命周期函数
#endregion
